Names and binding in type theory
نویسنده
چکیده
Names and name-binding are useful concepts in the theory and practice of formal systems. In this thesis we study them in the context of dependent type theory. We propose a novel dependent type theory with primitives for the explicit handling of names. As the main application, we consider programming and reasoning with abstract syntax involving variable binders. Gabbay and Pitts have shown that Fraenkel Mostowski (FM) set theory models a notion of name using which informal work with names and binding can be made precise. They have given a number of useful constructions for working with names and binding, such as a syntax-independent notion of freshness that formalises when two objects do not share names, and a freshness quantifier that simplifies working with names and binding. Related to FM set theory, a number of systems for working with names have been given, among them are the first-order Nominal Logic, the higher-order logic FM-HOL, the Theory of Contexts as well as the programming language FreshML. In this thesis we study how dependent type theory can be extended with primitives for working with names and binding. Our choice of primitives is different from that in FM set theory. In FM set theory the fundamental primitive for working with names is swapping. All other concepts such as α-equivalence classes and binding are constructed from it. For dependent type theory, however, this approach of constructing everything from swapping is not ideal, since it requires us to make strong assumptions on the type theory. For instance, the construction of α-equivalence classes from swapping appears to require quotient types. Our approach is to treat constructions such as α-equivalence classes and name-binding directly, turning them into primitives of the type theory. To do this, it is convenient to take freshness rather than swapping as the fundamental primitive. Based on the close correspondence between type theories and categories, we approach the design of the dependent type theory by studying the categorical structure underlying FM set theory. We start from a monoidal structure capturing freshness. By analogy with the definition of simple dependent sums Σ and products Π from the cartesian product, we define monoidal dependent sums Σ∗ and products Π∗ from the monoidal structure. For the type of names N, we have an isomorphism ΣN ∼= ΠN generalising the freshness quantifier. We show that this structure includes α-equivalence classes, name binding, unique choice of fresh names as well as the freshness quantifier. In addition to the set theoretic model corresponding to FM set theory, we also give a realizability model of this structure. The semantic structure leads us to a bunched type theory having both a dependent additive context structure and a non-dependent multiplicative context structure. This type theory generalises the simply-typed αλ -calculus of O’Hearn and Pym in the additive direction. It includes novel monoidal products Π∗ and sums Σ∗ as well as hidden-name types H for working with names and binding. We give examples for the use of the type theory for programming and reasoning with abstract syntax involving binders. We show that abstract syntax can be handled both in the style of FM set theory and in the style of Weak Higher Order Abstract Syntax. Moreover, these two styles of working with abstract syntax can be mixed, which has interesting applications such as the derivation of a term for the unique choice of new names.
منابع مشابه
A Dependent Type Theory with Names and Binding
We consider the problem of providing formal support for working with abstract syntax involving variable binders. Gabbay and Pitts have shown in their work on Fraenkel-Mostowski (FM) set theory how to address this through first-class names: in this paper we present a dependent type theory for programming and reasoning with such names. Our development is based on a categorical axiomatisation of n...
متن کاملTranslation of English Brand Names into Persian: Type of translation and font size in focus
Abstract The aim of this study was to find the appropriate type of translation of English brand names Iranian consumers prefer, i.e. phonetic, semantic and phonosemantic types of translation. Also, it was aimed at examining the type of font size Iranian consumers tends to see on packages of English products. To this end, the distinction between male and female participants as well as the partic...
متن کاملTranslation of English Brand Names into Persian: Type of translation and font size in focus
Abstract The aim of this study was to find the appropriate type of translation of English brand names Iranian consumers prefer, i.e. phonetic, semantic and phonosemantic types of translation. Also, it was aimed at examining the type of font size Iranian consumers tends to see on packages of English products. To this end, the distinction between male and female participants as well as the partic...
متن کاملThe Objective Source of Moral Values from the Standpoints of Plato and Ibn ‘Arabī on the Basis of Doctrines of Ideas and Immutable Entities
Belief in eternality of the source of moral values has a great influence on people’s way of thinking and their lifestyles. This research analytically and explanatorily compares the views of two leading thinkers in the Islamic and Western worlds: Plato and Ibn ‘Arabī. While according to Plato’s theory of “Ideas”, all phenomena including moral values such as brevity and justice have examples, ide...
متن کاملThe Evaluation of Serum Level of Testosterone and Sex Hormone- Binding Globulin in Men with Type 2 Diabetes
OBJECTIVE: To evaluate the relationship between serum level of testosterone and sex hormone-binding globulin in men with type 2 diabetes. MATERIALS AND METHODS: In this case-control study, forty men aged 40-70 with type 2 diabetes mellitus were randomly selected and compared with 40 non-diabetic men. The two groups were matched for their age and BMI. After complete observation and examination...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2006